/*
  配置式路由
    1.key -- 唯一标志
    2.link -- 前端路由
    3.icon -- 侧边栏图标 ！！注意只需要给父标签设置
    4.menus -- 侧边栏每项的子菜单
      1. 如果为空就代表没有子项
      2. 如果不为空 则子配置项要求同上
    5.url -- 路由的渲染文件
      1.如果没有子菜单则必须要配置改项，否则会找不到资源
      2.如果有子菜单则该项应该配置在子菜单中，父菜单不应该配置

*/

export default [
  {
    key: '0000',
    title: '首页',
    icon: 'home',
    link: '/home',
    menus: [],
    url: './home/view',
  },
  {
    key: '1000',
    title: '地图分析',
    icon: 'compass',
    link: '/map',
    menus: [],
    url: './map/view',
  },
  {
    key: '2000',
    title: '可视工程',
    icon: 'area-chart',
    link: '/echarts',
    menus: [
      {
        key: '2001',
        title: '领导驾驶舱',
        link: '/echarts/cockpit',
        url: './cockpit/view',
      },
      {
        key: '2002',
        title: '热线管理',
        link: '/echarts/hotline',
        url: './hotline/view',
      },
      {
        key: '2003',
        title: '工程管理',
        link: '/echarts/engineermanagement',
        url: './engineerManagement/view',
      },
      {
        key: '2004',
        title: '在线监测',
        link: '/echarts/onlinemonitor',
        url: './onlineMonitor/view',
      },
    ],
    url: './echarts/view',
  },
  {
    key: '3000',
    title: '信息汇总',
    icon: 'home',
    menus: [
      {
        key: '3001',
        title: '工程信息',
        link: '/info/project',
        url: './projectInfo/view',
      },
      {
        key: '3002',
        title: '合同信息',
        link: '/info/contract',
        url: './contractInfo/view',
      },
      {
        key: '3003',
        title: '财务信息',
        link: '/info/finance',
        url: './financeInfo/view',
      },
    ]
  },
  {
    key: '4000',
    title: '工程计划',
    icon: 'home',
    menus: [
      {
        key: '4001',
        title: '年度计划',
        link: '/plan/year',
        url: './planYear/view',
      },
      {
        key: '4002',
        title: '整体计划',
        link: '/plan/whole',
        url: './planWhole/view',
      },
    ]
  },
  {
    key: '5000',
    title: '项目管理',
    icon: 'home',
    menus: [
      {
        key: '5001',
        title: '计划内项目',
        link: '/engineer/inside',
        url: './engineerInside/view',
      },
      {
        key: '5002',
        title: '计划外项目',
        link: '/engineer/outside',
        url: './engineerOutside/view',
      },
    ]
  },
  {
    key: '6000',
    title: '人员管理',
    icon: 'home',
    menus: [
      {
        key: '6001',
        title: '个人信息',
        link: '/management/personal',
        url: './personalInfo/view',
      },
      {
        key: '6002',
        title: '组织关系',
        link: '/management/relationship',
        url: './relationship/view',
      },
    ]
  },
  {
    key: '7000',
    title: '关于我们',
    link: '/about',
    icon: 'home',
    menus: [
      {
        key: '7001',
        title: '公司简介',
        link: '/about/company',
        url: './companyProfile/view',
      },
      {
        key: '7002',
        title: '荣誉奖项',
        link: '/about/awards',
        url: './honoraryAwards/view',
      },
    ],
    // url: './aboutUs/view',
  },
]
